package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.CarInfo;
import cn.wolfcode.crm.domain.Client;
import cn.wolfcode.crm.domain.Storages;
import cn.wolfcode.crm.query.StoragesQueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IStoragesService {
    void deleteByPrimaryKey(Long id);

    void insert(Storages record);

    Storages selectByPrimaryKey(Long id);

    List<Storages> selectAll();

    void updateByPrimaryKey(Storages record);

    PageResult query(StoragesQueryObject qo);

    void saveStorages(Long storages_id,Long agency_id, Long product_id, Double limit,Double durations,Client client,CarInfo info);

    void storagesIdsStoraId(Long id,Integer state,Integer pay);

    void storagesIdsStora(Storages storages);
    /*
   * 填写事故备案表之后,将accident_state改成1
   * */
    void changeAccidenState(String insuranceNo);
}